<html xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd" >
  <head>  
    <title>Quad Demo</title>
    
<style type="text/css">
h4 { margin:10px 2px; padding:0px; }
</style>

  </head>
  <body>
  
    <hr/>
    <h3>Quad Tokens</h3>
    <form action="grid" method="get" style="width:100%;">
    
    
      <h4>Name (for KML, optional)</h4>
      <input name="name" type="text" style="width:100%;"/>
      
      <h4>Country (from shpfile)</h4>
      <select name="country">
        <option value="*">(Use Geometry)</option>
        <option value="CH">China</option>
        <option value="IN">India</option>
        <option value="US">United States</option>
        <option value="ID">Indonesia</option>
        <option value="BR">Brazil</option>
        <option value="PK">Pakistan</option>
        <option value="BG">Bangladesh</option>
        <option value="RS">Russia</option>
        <option value="NI">Nigeria</option>
        <option value="JA">Japan</option>
        <option value="MX">Mexico</option>
        <option value="RP">Philippines</option>
        <option value="VM">Vietnam</option>
        <option value="GM">Germany</option>
        <option value="EG">Egypt</option>
        <option value="ET">Ethiopia</option>
        <option value="TU">Turkey</option>
        <option value="IR">Iran</option>
        <option value="TH">Thailand</option>
        <option value="FR">France</option>
        <option value="UK">United Kingdom</option>
        <option value="CG">Congo, DRC</option>
        <option value="IT">Italy</option>
        <option value="KS">South Korea</option>
        <option value="UP">Ukraine</option>
        <option value="SF">South Africa</option>
        <option value="CO">Colombia</option>
        <option value="BM">Myanmar</option>
        <option value="SP">Spain</option>
        <option value="SU">Sudan</option>
        <option value="AR">Argentina</option>
        <option value="PL">Poland</option>
        <option value="TZ">Tanzania</option>
        <option value="KE">Kenya</option>
        <option value="CA">Canada</option>
        <option value="MO">Morocco</option>
        <option value="AG">Algeria</option>
        <option value="AF">Afghanistan</option>
        <option value="PE">Peru</option>
        <option value="NP">Nepal</option>
        <option value="UG">Uganda</option>
        <option value="UZ">Uzbekistan</option>
        <option value="SA">Saudi Arabia</option>
        <option value="IZ">Iraq</option>
        <option value="VE">Venezuela</option>
        <option value="MY">Malaysia</option>
        <option value="KN">North Korea</option>
        <option value="RO">Romania</option>
        <option value="GH">Ghana</option>
        <option value="YM">Yemen</option>
        <option value="AS">Australia</option>
        <option value="CE">Sri Lanka</option>
        <option value="MZ">Mozambique</option>
        <option value="SY">Syria</option>
        <option value="MA">Madagascar</option>
        <option value="IV">Cote d'Ivoire</option>
        <option value="NL">Netherlands</option>
        <option value="CM">Cameroon</option>
        <option value="CI">Chile</option>
        <option value="KZ">Kazakhstan</option>
        <option value="GT">Guatemala</option>
        <option value="UV">Burkina Faso</option>
        <option value="CB">Cambodia</option>
        <option value="EC">Ecuador</option>
        <option value="ZI">Zimbabwe</option>
        <option value="ML">Mali</option>
        <option value="MI">Malawi</option>
        <option value="NG">Niger</option>
        <option value="CU">Cuba</option>
        <option value="ZA">Zambia</option>
        <option value="AO">Angola</option>
        <option value="SG">Senegal</option>
        <option value="YI">Serbia & Montenegro</option>
        <option value="GR">Greece</option>
        <option value="PO">Portugal</option>
        <option value="BE">Belgium</option>
        <option value="BO">Belarus</option>
        <option value="EZ">Czech Republic</option>
        <option value="TS">Tunisia</option>
        <option value="HU">Hungary</option>
        <option value="CD">Chad</option>
        <option value="GV">Guinea</option>
        <option value="SW">Sweden</option>
        <option value="DR">Dominican Republic</option>
        <option value="BL">Bolivia</option>
        <option value="SO">Somalia</option>
        <option value="RW">Rwanda</option>
        <option value="AU">Austria</option>
        <option value="HA">Haiti</option>
        <option value="AJ">Azerbaijan</option>
        <option value="SZ">Switzerland</option>
        <option value="BN">Benin</option>
        <option value="BU">Bulgaria</option>
        <option value="TI">Tajikistan</option>
        <option value="HO">Honduras</option>
        <option value="ES">El Salvador</option>
        <option value="BY">Burundi</option>
        <option value="PA">Paraguay</option>
        <option value="IS">Israel</option>
        <option value="LA">Laos</option>
        <option value="SL">Sierra Leone</option>
        <option value="LY">Libya</option>
        <option value="JO">Jordan</option>
        <option value="TO">Togo</option>
        <option value="PP">Papua New Guinea</option>
        <option value="NU">Nicaragua</option>
        <option value="DA">Denmark</option>
        <option value="LO">Slovakia</option>
        <option value="FI">Finland</option>
        <option value="KG">Kyrgyzstan</option>
        <option value="TX">Turkmenistan</option>
        <option value="GG">Georgia</option>
        <option value="NO">Norway</option>
        <option value="ER">Eritrea</option>
        <option value="HR">Croatia</option>
        <option value="MD">Moldova</option>
        <option value="SN">Singapore</option>
        <option value="NZ">New Zealand</option>
        <option value="BK">Bosnia & Herzegovina</option>
        <option value="CS">Costa Rica</option>
        <option value="EI">Ireland</option>
        <option value="RQ">Puerto Rico</option>
        <option value="LE">Lebanon</option>
        <option value="CT">Central African Republic</option>
        <option value="LH">Lithuania</option>
        <option value="AL">Albania</option>
        <option value="LI">Liberia</option>
        <option value="UY">Uruguay</option>
        <option value="MR">Mauritania</option>
        <option value="PM">Panama</option>
        <option value="CF">Congo</option>
        <option value="MU">Oman</option>
        <option value="AM">Armenia</option>
        <option value="MG">Mongolia</option>
        <option value="JM">Jamaica</option>
        <option value="AE">United Arab Emirates</option>
        <option value="WE">West Bank</option>
        <option value="KU">Kuwait</option>
        <option value="LG">Latvia</option>
        <option value="BT">Bhutan</option>
        <option value="MK">Macedonia</option>
        <option value="WA">Namibia</option>
        <option value="SI">Slovenia</option>
        <option value="LT">Lesotho</option>
        <option value="BC">Botswana</option>
        <option value="GA">The Gambia</option>
        <option value="PU">Guinea-Bissau</option>
        <option value="GB">Gabon</option>
        <option value="GZ">Gaza Strip</option>
        <option value="EN">Estonia</option>
        <option value="MP">Mauritius</option>
        <option value="WZ">Swaziland</option>
        <option value="TD">Trinidad & Tobago</option>
        <option value="TT">Timor Leste</option>
        <option value="FJ">Fiji</option>
        <option value="QA">Qatar</option>
        <option value="CY">Cyprus</option>
        <option value="RE">Reunion</option>
        <option value="GY">Guyana</option>
        <option value="BA">Bahrain</option>
        <option value="CN">Comoros</option>
        <option value="BP">Solomon Is.</option>
        <option value="EK">Equatorial Guinea</option>
        <option value="DJ">Djibouti</option>
        <option value="LU">Luxembourg</option>
        <option value="GP">Guadeloupe</option>
        <option value="NS">Suriname</option>
        <option value="MB">Martinique</option>
        <option value="CV">Cape Verde</option>
        <option value="MT">Malta</option>
        <option value="BX">Brunei</option>
        <option value="MV">Maldives</option>
        <option value="BF">The Bahamas</option>
        <option value="IC">Iceland</option>
        <option value="BH">Belize</option>
        <option value="BB">Barbados</option>
        <option value="WI">Western Sahara</option>
        <option value="FP">French Polynesia</option>
        <option value="NT">Netherlands Antilles</option>
        <option value="NC">New Caledonia</option>
        <option value="NH">Vanuatu</option>
        <option value="FG">French Guiana</option>
        <option value="MF">Mayotte</option>
        <option value="TP">Sao Tome & Principe</option>
        <option value="WS">Samoa</option>
        <option value="GQ">Guam</option>
        <option value="ST">St. Lucia</option>
        <option value="VC">St. Vincent & the Grenadines</option>
        <option value="TN">Tonga</option>
        <option value="VQ">Virgin Is.</option>
        <option value="FM">Micronesia</option>
        <option value="KR">Kiribati</option>
        <option value="JE">Jersey</option>
        <option value="GJ">Grenada</option>
        <option value="SE">Seychelles</option>
        <option value="CQ">Northern Mariana Is.</option>
        <option value="IM">Isle of Man</option>
        <option value="AA">Aruba</option>
        <option value="AN">Andorra</option>
        <option value="DO">Dominica</option>
        <option value="AC">Antigua & Barbuda</option>
        <option value="BD">Bermuda</option>
        <option value="GK">Guernsey</option>
        <option value="RM">Marshall Is.</option>
        <option value="AQ">American Samoa</option>
        <option value="GL">Greenland</option>
        <option value="FO">Faroe Is.</option>
        <option value="CJ">Cayman Is.</option>
        <option value="SC">St. Kitts & Nevis</option>
        <option value="LS">Liechtenstein</option>
        <option value="MN">Monaco</option>
        <option value="SM">San Marino</option>
        <option value="GI">Gibraltar</option>
        <option value="VI">British Virgin Is.</option>
        <option value="CW">Cook Is.</option>
        <option value="TK">Turks & Caicos Is.</option>
        <option value="PS">Palau</option>
        <option value="WF">Wallis & Futuna</option>
        <option value="AV">Anguilla</option>
        <option value="NR">Nauru</option>
        <option value="TV">Tuvalu</option>
        <option value="MH">Montserrat</option>
        <option value="SH">St. Helena</option>
        <option value="SB">St. Pierre & Miquelon</option>
        <option value="FK">Falkland Is.</option>
        <option value="SV">Svalbard</option>
        <option value="NE">Niue</option>
        <option value="NF">Norfolk I.</option>
        <option value="TL">Tokelau</option>
        <option value="VT">Vatican City</option>
        <option value="CK">Cocos Is.</option>
        <option value="KT">Christmas I.</option>
        <option value="PC">Pitcairn Is.</option>
        <option value="SX">South Georgia & the South Sandwich Is.</option>
        <option value="DQ">Jarvis I.</option>
        <option value="FQ">Baker I.</option>
        <option value="HQ">Howland I.</option>
        <option value="JQ">Johnston Atoll</option>
        <option value="MQ">Midway Is.</option>
        <option value="JN">Jan Mayen</option>
        <option value="WQ">Wake I.</option>
        <option value="FS">French Southern & Antarctic Lands</option>
        <option value="HM">Heard I. & McDonald Is.</option>
        <option value="AY">Antarctica</option>
        <option value="BV">Bouvet I.</option>
        <option value="JU">Juan De Nova I.</option>
        <option value="IO">British Indian Ocean Territory</option>
        <option value="GO">Glorioso Is.</option>
      </select>
      
      <h4>Geo - [X Y] [MinX MinY MaxX MaxY], or [WKT]</h4>
      <textarea name="geo" style="width:100%;" rows="7">POLYGON((172.67870664597 -34.318349361419, 172.85448789597 -35.285146236419, 173.90917539597 -36.427724361419, 174.52440977097 -37.394521236419, 174.70019102097 -38.449208736419, 173.73339414597 -38.800771236419, 172.06347227097 -40.734364986419, 171.27245664597 -41.437489986419, 170.74511289597 -42.580068111419, 167.31737852097 -44.601552486419, 166.08690977097 -45.656239986419, 166.08690977097 -46.359364986419, 167.49315977097 -46.710927486419, 169.25097227097 -47.238271236419, 171.27245664597 -45.832021236419, 171.79980039597 -44.162099361419, 173.20605039597 -43.986318111419, 173.46972227097 -43.195302486419, 174.61230039597 -41.701161861419, 176.63378477097 -41.349599361419, 177.42480039597 -39.591786861419, 179.09472227097 -37.482411861419, 178.21581602097 -37.042958736419, 177.51269102097 -37.658193111419, 176.19433164597 -37.218739986419, 176.01855039597 -36.076161861419, 174.61230039597 -34.933583736419, 172.67870664597 -34.318349361419))</textarea>
      
      <h4>Format</h4>
      <select name="format">
        <option value="kml">KML</option>
        <option value="text">text</option>
      </select>
      
      <input id="intersections" type="checkbox" name="intersections" />
      <label for="intersections">Show Intersections</label>
      
      
      <h4>Grid</h4>
      <select name="depth" style="width:50px">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
        <option value="8">8</option>
        <option value="9">9</option>
        <option value="11">11</option>
        <option value="12">12</option>
        <option value="13">13</option>
        <option value="14">14</option>
        <option value="15">15</option>
        <option value="16" selected="selected">16</option>
        <option value="17">17</option>
        <option value="18">18</option>
        <option value="19">19</option>
        <option value="20">20</option>
      </select>
      <span>Maximum Depth</span>
      <br>
      
      <select name="resolution" style="width:50px">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4" selected="selected">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
        <option value="8">8</option>
        <option value="9">9</option>
      </select>
      <span>Resolution (how many levels past the 'best fit')</span>
      <br>
      
      
      <br/><br/>
      <input type="submit" />
    </form>
    
  </body>
</html>
